package com.tz.fruit.entity;
import java.io.Serializable;
import java.util.LinkedList;

/**
 * Created by CHEN on 2017/7/26.
 */
public class Recent implements Serializable{

    private Long id;

    private LinkedList<Product> products;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LinkedList<Product> getProducts() {
        return products;
    }

    public void setProducts(LinkedList<Product> products) {
        this.products = products;
    }

    public Recent(LinkedList<Product> products) {
        this.products = products;
    }

    public Recent() {
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Recent{");
        sb.append("id=").append(id);
        sb.append(", products=").append(products);
        sb.append('}');
        return sb.toString();
    }
}
